package com.daka.service.impl;

import com.daka.dao.MemberInsuranceDao;
import com.daka.entity.MemberInsurance;
import com.daka.service.MemberInsuranceService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author beliveli on 2016/3/31 0031.
 */
@Service("memberInsuranceService")
@SuppressWarnings("unused")
public class MemberInsuranceServiceImpl implements MemberInsuranceService {

    @Resource
    private MemberInsuranceDao memberInsuranceDao;

    @Override
    public MemberInsurance save(MemberInsurance memberInsurance) {
        memberInsuranceDao.insert(memberInsurance);
        return memberInsurance;
    }

    @Override
    public MemberInsurance findByVolunteerCode(String volunteerCode) {
        return memberInsuranceDao.selectByVolunteerCode(volunteerCode);
    }
}
